﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class RoleService_Design: IRoleService
    {
        public Task<IEnumerable<Role>> QueryRole(int? userId = null)
        {
            return Task.Run(() =>
            {
                return new List<Role>{ new Role
                    {
                        ID = 1
                    }
                }.AsEnumerable();
            });
        }

        public Task<int> UpdateUserRole(int userId, int roleId)
        {
            throw new NotImplementedException();
        }
    }
}
